.layout-box {
    .el-header {
        padding-right: 0;
        padding-left: 0;
    }

    .el-aside {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        transition: 0.3s;

        &::-webkit-scrollbar {
            width: 0 !important;
        }
    }

    .el-main {
        height: 100%;
        padding: 0;
        overflow-x: hidden;
        background-color: var(--system-container-background);
    }

    .el-main-box {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    @media screen and (width <= 1000px) {
        .el-aside {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            height: 100vh;

            &.hide-aside {
                left: -250px;
            }
        }

        .mask {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 999;
            width: 100vw;
            height: 100vh;
            background: rgb(0, 0, 0, 0.5);
        }
    }
}

.layout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding-right: 22px;
    background-color: var(--system-header-background);

    .left-box {
        display: flex;
        align-items: center;
        height: 100%;

        .menu-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 100%;
            margin-right: 10px;
            font-size: 25px;
            font-weight: 100;
            cursor: pointer;

            &:hover {
                background-color: var(--system-header-item-hover-color);
            }

            i {
                color: var(--system-header-text-color);
            }
        }
    }

    .right-box {
        display: flex;
        align-items: center;
        justify-content: center;

        .function-list {
            display: flex;

            .function-list-item {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 30px;

                i {
                    color: var(--system-header-text-color);
                }
            }
        }

        .user-info {
            display: flex;
            margin-left: 20px;

            .el-dropdown-link {
                color: var(--system-header-breadcrumb-text-color);
            }
        }
    }

    .head-fold {
        font-size: 20px;
    }
}

.layout-logo {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    padding-left: 10px;
    background-color: var(--system-logo-background);

    h1 {
        margin-left: 6px;
        font-size: 18px;
        color: var(--system-logo-color);
        white-space: nowrap;
    }
}

.layout-menu {
    &.el-scrollbar {
        background-color: var(--system-menu-background);
    }

    .layout-menu-wrap {
        width: 100%;
        border: none;

        &.collapse {
            margin-left: 0;
        }

        .el-menu-item,
        .el-sub-menu {
            background-color: var(--system-menu-background) !important;
        }

        .el-menu-item i {
            line-height: 1;
        }

        .el-menu-item i,
        .el-menu-item-group__title,
        .el-sub-menu__title i {
            color: var(--system-menu-text-color);
        }

        .el-menu-item,
        .el-sub-menu__title {
            &.is-active {
                color: var(--system-primary-text-color) !important;
                background-color: var(--system-primary-color) !important;

                i {
                    color: var(--system-primary-text-color) !important;
                }

                &:hover {
                    color: var(--system-primary-text-color) !important;
                    background-color: var(--system-primary-color) !important;
                }
            }

            &:hover {
                background-color:
                    var(
                        --system-menu-hover-background
                    ) !important;
            }
        }

        .el-sub-menu {
            &.is-active {
                > .el-sub-menu__title,
                > .el-sub-menu__title i {
                    color: var(--system-menu-submenu-active-color) !important;
                }
            }

            .el-menu-item {
                background-color:
                    var(
                        --system-menu-children-background
                    ) !important;

                &.is-active {
                    color: var(--system-primary-text-color) !important;
                    background-color: var(--system-primary-color) !important;

                    &:hover {
                        color: var(--system-primary-text-color) !important;
                        background-color: var(--system-primary-color) !important;
                    }
                }

                &:hover {
                    background-color:
                        var(
                            --system-menu-hover-background
                        ) !important;
                }
            }

            .el-sub-menu {
                .el-sub-menu__title {
                    background-color:
                        var(
                            --system-menu-children-background
                        ) !important;

                    &:hover {
                        background-color:
                            var(
                                --system-menu-hover-background
                            ) !important;
                    }
                }
            }
        }
    }

    .el-sub-menu {
        text-align: left;
    }

    .el-menu-item {
        text-align: left;
    }

    .el-menu-item i,
    .el-sub-menu__title i {
        padding-right: 8px;
    }
}

.layout-header-breadcrumb {
    display: inline-block;
    font-size: 14px;
    line-height: 50px;

    .no-redirect {
        color: var(--system-header-breadcrumb-text-color);
        cursor: text;
    }

    a {
        color: var(--system-header-text-color);
    }
}

.layout-theme {
    .other-setting {
        padding: 0 20px;

        .list-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;

            span {
                font-size: 14px;
            }
        }
    }

    h3 {
        padding: 0 20px;
        margin-top: 40px;
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 22px;
        color: rgb(0, 0, 0, 0.85);
        text-align: left;

        &:first-child {
            margin-top: 0;
        }
    }

    .theme-box {
        padding-left: 20px;
        text-align: left;
    }
}

.theme-color {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 4px;
    outline: none;

    .active {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;

        i {
            font-size: 12px;
            font-weight: bold;
            color: #fff;
        }
    }

    & + .theme-color {
        margin-left: 10px;
    }
}

.theme-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    outline: none;
    box-shadow: 0 1px 2.5px 0 rgb(0, 0, 0, 0.18);
    box-shadow:
        0 2px 4px rgb(0, 0, 0, 0.12),
        0 0 6px rgb(0, 0, 0, 0.04);

    .theme-icon-sidebar {
        display: flex;
        flex-direction: column;
        width: 18px;

        .theme-icon-sidebar-logo {
            width: 20px;
            height: 10px;
            background-color: #263445;
        }

        .theme-icon-sidebar-menu {
            flex: 1;
            background-color: rgb(40, 65, 90);
        }
    }

    .theme-icon-content {
        display: flex;
        flex: 1;
        flex-direction: column;

        .theme-icon-content-header {
            height: 10px;
            background-color: #fff;
        }

        .theme-icon-content-main {
            position: relative;
            flex: 1;
            background-color: #f0f2f5;

            .active {
                position: absolute;
                top: 0;
                left: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 100%;

                i {
                    font-size: 22px;
                    font-weight: bold;
                    color: #000;
                }
            }
        }
    }

    & + .theme-icon {
        margin-left: 12px;
    }
}

.global-tab-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 8px;
    margin-top: 4px;
    margin-left: 5px;
    font-size: 12px;
    line-height: 26px;
    color: var(--system-header-text-color);
    cursor: pointer;
    background: var(--system-header-tab-background);
    border: 1px solid var(--system-header-border-color);
    border-radius: 5px;

    a {
        display: inline-block;
        height: 26px;
        padding-right: 8px;
        padding-left: 8px;
        color: var(--system-header-text-color);
    }

    .el-icon-refresh-right {
        display: inline-block;
        margin-right: 5px;
    }

    .el-icon-close {
        display: inline-block;
        height: 26px;
    }

    &:first-of-type {
        margin-left: 15px;
    }

    &:last-of-type {
        margin-right: 15px;
    }

    &.active {
        color: var(--system-primary-text-color);
        background: var(--system-primary-color);
        border-color: var(--system-primary-color);

        a {
            color: var(--system-primary-text-color);
        }

        &:hover {
            background: var(--system-primary-color);
        }
    }

    &:hover {
        background-color: var(--system-header-item-hover-color);
    }
}

.layout-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    background: var(--system-header-background);
    border-top: 1px solid var(--system-header-border-color);
    border-bottom: 1px solid var(--system-header-border-color);
    box-shadow: 0 1px 4px 0 rgb(0, 0, 0, 0.1);

    .layout-tabs-handle {
        display: flex;
        align-items: center;
        min-width: 95px;
        height: 100%;

        .el-dropdown-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 25px;
            margin-top: 5px;
            border-left: 1px solid var(--system-header-border-color);
        }

        i {
            color: var(--system-header-text-color);
        }
    }

    .scroll-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        white-space: nowrap;

        .el-scrollbar__bar {
            bottom: 0;
        }

        .el-scrollbar__wrap {
            height: 49px;
        }
    }

    .tags-view-container {
        display: flex;
        flex: 1;
        width: 100%;
        height: 34px;
    }

    .el-icon-full-screen {
        cursor: pointer;

        &:hover {
            background: rgb(0, 0, 0, 0.025);
        }

        &:focus {
            outline: none;
        }
    }

    .tab-ddropdown-item {
        display: flex;
        align-items: center;
    }
}
